package day0725;

import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double s=86.9;
        judge(s);
    }

    static  void judge(double s){
        //判断成绩等级
        if(s>100 || s<0){
            System.out.println("成绩不合法");
            return;
        }else if(s>=0 && s<60){
            System.out.println("不及格");
        }else if(s>=60 && s<75){
            System.out.println("等级为 中等 ");
        }else if(s>=75 && s<85){
            System.out.println("等级为 良好");
        }else{
            System.out.println("等级为 优秀");
        }
    }



}
